<?php $this->render("./View/admin/header.phtml"); ?>
<body>
	<div id="header">
    	<div id="top-navi">
        		<ul id="breadcrumb">
                	<li class="navi-first"><a href="#" title="">Kanedo CMS</a></li>
                    <li><a href="#" title="">Dashboard</a></li>
                </ul>
                <ul id="skip-links">
                	<li><a href="#" title="">Profil</a></li>
                    <li><a href="admin/login/logout" title="">Logout</a></li>
                    <li><a href="/" title="">Seite Ansehen</a></li>
                </ul>
        </div>
        <h1>Willkommen <?php echo $this->user['nick']; ?>!</h1>
        <div id="user-desc">
			<img src="/IMAGES/admin/gravatar.png" alt="Userbild" />   			
            <p>
                <span id="username"><?php echo $this->user['prename']." ".$this->user['name']?></span>
                <span id="role"><?php echo $this->user['desc']?></span>
            </p>
            
       </div>
	</div>
    <div id="content">
        <div id="leftcol">
		<?php $this->render("./View/admin/navigation.phtml"); ?>
        </div>
        <div id="rightcol">
            <div id="content-top">
                <p class="short-desc">Eine kleine Einf&uuml;hrung in das CMS </p>
                <p class="long-desc">Hier steht dann alles viel Ausf&uuml;hrlicher drinn</p>
                <p class="more">
                    <a href="#" id="help-more" title="Hilfe Anzeigen">
                        <img src="/IMAGES/admin/arrow_down.png" id="show-help-more" alt="Hilfe Anzeigen" />
                    </a>
                </p>
            </div>
            <div id="domtree">
            	<?php echo $this->tree?>
            </div>
            <form action="#" method="post" id="site-edit">
                <div id="content-left">
                    <h2>Seite Editieren</h2>
                   <input type="hidden" value="<?php echo $this->site['id_site']?>" name="id" />
				   <input type="hidden" value="<?php echo $this->user['id_user_user']?>" name="user" />
                    <label for="title">Seiten Titel:</label>
                    <input type="text" name="title" value="<?php echo $this->site['title']?>" />
                    <label for="content">Inhalt der Seite:</label>
					<div id="content-textarea"  style="width:450px; height:150px; background:white; float:left;clear:both;">
                    	<?php echo $this->site['content']?>
                    </div>
				<div id="stati">
					<p id="status-signal">&nbsp;</p>
					<button type="submit" name="submit" value="edit">Speichern</button>
				</div>
                </div>
                <div id="content-right">
                    <label for="date">Datum:</label>
					<input type="text" name="date" value="<?php echo $this->site['date']?>" />
					<label for="published">Ver&ouml;ffentlicht?</label>
					<?php if ($this->site['title'] == 1){?>
					<input type="checkbox" name="published" checked="checked" />
					<?php }else {?>
					<input type="checkbox" name="published" checked="checked" />
					<?php }?>
					<label for="module">Verf&uuml;gbare Module</label>
					<?php echo $this->site['moduleList'] ?>
                    
                </div>
        	 </form>
		</div>
    </div>
    <div id="footer">
    	<p>&copy; 2009 &ndash; Powered by Kanedo CMS Version 0.1</p>
    </div>
</body>
</html>
